#!/usr/bin/env python
# -*-coding:utf-8-*-
# File    : liyuqi.py
# Date    : 2021-01-23
# Author  : Tom.Lee

# fs = open("liyuqi.txt", "w")

# for n in range(1,10):
#     line = ""
#     for x in range(1,n+1):
#         line += "{}x{}={}\t".format(n, x, n*x)
#     print(line)
#     fs.write(line + '\n')

# fs.close()

#
with open('liyuqi.txt', 'a') as fs:
    for n in range(1, 10):
        line = ''
        for x in range(1, n+1):
            line += "{}x{}={}\t".format(n, x, n*x)
            fs.close


